package org.shagin.jfin.core;

public class Utils {
	public static final double PRECISION = 0.001;

	public static boolean isZero(double value) {
		return Math.abs(value) < PRECISION;
	}

	public static boolean isEqualsAny(Object obj, Object... args) {
		boolean result = false;
		for (int i = 0; i < args.length; i++) {
			if (obj.equals(args[i])) {
				result = true;
				break;
			}
		}
		return result;
	}
}
